<template>
  <div>
    <el-row class="info-container">
      <el-col :span="12">
        <div class="info-block">
          <label>接口名称：</label>
          <span>{{ detail.name }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>接口版本：</label>
          <span>{{ detail.version }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>部门：</label>
          <span>{{ detail.createdDeptName }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>申请部门：</label>
          <span>{{ data.applyDeptName }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>申请应用：</label>
          <span>{{ detail.applicationName }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>接口日均调用量：</label>
          <span>{{ data.dayCallNum }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>申请联系人：</label>
          <span>{{ data.applyContactName }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>申请人联系方式：</label>
          <span>{{ data.applyContactPhone }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>安全负责人：</label>
          <span>{{ data.safePerson }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>安全负责人领导：</label>
          <span>{{ data.safePersonManager }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>责任人：</label>
          <span>{{ data.majorPerson }}</span>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="info-block">
          <label>责任人电话：</label>
          <span>{{ data.majorPersonPhone }}</span>
        </div>
      </el-col>
      <el-col :span="24">
        <div class="info-block">
          <label>申请说明：</label>
          <span>{{ data.useReason }}</span>
        </div>
      </el-col>
      <el-col :span="24">
        <div class="info-block">
          <label>附件：</label>
          <span>
            
          </span>
        </div>
      </el-col>
      <el-col :span="24">
        <div class="info-block">
         <FileDownload :files="data.files" />
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { defineComponent, watch, computed, ref } from "vue";
import FileDownload from '@/components/FileDownload/index.vue'
export default defineComponent({
  name: "ApproveInfo",
  props: {
    data: {
      type: Object,
      default: () => {},
    },
    detail: {
      type: Object,
      default: () => {},
    },
  },
  components: { FileDownload },
  setup(props, { emit }) {
    return {};
  },
});
</script>

<style lang="scss" scoped>
.info-container {
  padding: 15px 0;
  padding-left: 10px;
  .el-col {
    margin-top: 15px;
  }
  .info-block {
    label {
      font-size: 14px;
      font-weight: 600;
      color: #3C475D;
      line-height: 20px;
    }
    span {
      font-size: 14px;
      font-weight: 400;
      color: #3C475D;
      line-height: 20px;
    }
  }
}
</style>
